/*
 * @Author: ZhaoZhiqi
 * @Date: 2022-08-30 15:37:06
 * @LastEditors: ZhaoZhiqi
 * @LastEditTime: 2022-08-31 11:22:01
 * @Description: 问题反馈
 * @FilePath: \tuanfeng-mini\src\api\questions.js
 */
import request from "./request";

/**
 * @description: 查询问题反馈列表
 * @return {*}
 */
export function getQuestionsListAPI(data) {
    return request(`prob/getProbForMiniProg`, 'GET', data)
}

/**
 * @description: 查询问题反馈详情
 * @param {string} id 问题id
 * @return {*}
 */
export function getQuestionAPI(data) {
    return request(`prob/getProbDetailsForMiniProg/${data.id}`, 'GET', data)
}

/**
 * @description: 查询问题反馈类型
 * @return {*}
 */
export function getQuestionTypeAPI(data) {
    return request(`prob/getProbType`, 'GET', data)
}

/**
 * @description: 查询问题反馈类型
 * @param {string} title 标题
 * @param {string} content 问题描述
 * @param {string} type 问题类型
 * @param {string} name 姓名
 * @param {string} mail 邮箱
 * @param {string} phone 手机号
 * @return {*}
 */
export function submitQuestionAPI(data) {
    return request(`prob/addProb`, 'POST', data)
}




